#14 ✓resolved

plugin directory contents not included when using git

Reported by jgeiger | September 4th, 2008 @ 01:40 PM

If you create a new rails project, then clone the git repository for restful authentication into the vendor plugins directory, a git add will not add the contents of the directory since it seems to be it's own git repository.

mkdir authtest
cd authtest
rails .
git init
git add .
git commit -a -m "initial commit"
cd vendor/plugins
git clone git://github.com/technoweenie/restful-authentication.git restful_authentication
cd ../../
script/generate authenticated user sessions --include-activation --aasm
git add .
git status

Output of the status command ...snip...

#       new file:   vendor/plugins/restful_authentication

It will add the directory, but not the contents. When you the commit and push the repository elsewhere, it will not include the contents of the restful_authentication directory, which will lead to errors when trying to deploy the project.

I just deleted the .git directory in vendor/plugins/restful_authentication which allowed me to add the files, but there might (should) be a better way.

This may not be a bug with the plugin itself, but the installation instructions need to be updated to account for this issue.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Restful Authentication Generator

This widely-used plugin provides a foundation for securely managing user
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.


People watching this ticket